<?php if(!empty($menu_list)){ ?>
<div style="height:67px;"></div>
<table class="footer" style="width: 100%; border-collapse: collapse;border-spacing: 0;table-layout: fixed">
    <tr style="text-align: center;">
    	<volist name="menu_list" id='v' >
    		<?php if( strstr($v['url'],'http') == false &&  !empty($v['url'])){ ?>
				<td class="" style="position: relative;" onclick="location='<?php echo $menu_ago.U($v['url'].'/hid/'.$hid);?>'" >	
			<?php }else{ ?>
    			<td class="" style="position: relative;" onclick="location='{$v['url']}'" >
    		<?php } ?>	
    			<?php if($v['url']==$menu_url){ ?>
    				<?php if(strstr($v['checked_img'],'Public')){ ?>
    				<img src="__ROOT__/{$v.checked_img}" class="foot_d_imga">
    				<?php }else{ ?>
    				<img src="{$path}{$v.checked_img}" class="foot_d_imga">	
    				<?php } ?>
    			<?php }else{ ?>
    				<?php if(strstr($v['nocheck_img'],'Public')){ ?>
    				<img src="__ROOT__/{$v.nocheck_img}" class="foot_d_imga">
    				<?php }else{ ?>
    				<img src="{$path}{$v.nocheck_img}" class="foot_d_imga">	
    				<?php } ?>
    			<?php } ?>	  
    			<?php if($v['url']==$menu_url){ ?>
	        	<p class="footer_td_p icon_active1">{$v.title}</p>
	        	<?php }else{ ?>
	        	<p class="footer_td_p">{$v.title}</p>
	        	<?php } ?>
	        </td>
    	</volist>
    </tr>
</table>
<?php } ?>
<?php if($now_url!='Home/Mobile/Index/index' && $now_url!='Home/Mobile/Index/hotellist' && $now_url!='Home/Mobile/Bargain/bargain_list' && $now_url!='Home/Mobile/Ticketing/ticket_list' && $now_url!='Home/Mobile/Timingcard/special_card_list'){ ?>
<script src="//res.wx.qq.com/open/js/jweixin-1.0.0.js" type="text/javascript"></script>
<if condition="$Think.session.u_type == 'app'">
<script type="text/javascript" src="https://js.cdn.aliyun.dcloud.net.cn/dev/uni-app/uni.webview.1.5.2.js"></script>
<script>
	document.addEventListener('UniAppJSBridgeReady', function() {
		uni.postMessage({
			data: {
				share_title: '{$share["share_title"]}',
				share_content: '{$share["share_content"]}',
				link: '{$share["link"]}',
				share_img: '{$share["share_img"]}'
			}
		});//传递的消息信息，必须写在 data 对象中。
	});
</script>  
</if>   
<script type="text/javascript">
	$(function(){
	  	//设置配置文件
    	wx.config({
            debug: false,       //调试模式是否开启，开启则在PC端控制台console里面打印，在手机端就是弹出状态吗
            appId: "{$wxdata['appId']}",     
            timestamp: "{$wxdata['timestamp']}",   
            nonceStr: "{$wxdata['nonceStr']}",    
            signature: "{$wxdata['signature']}",  
            jsApiList:[
	            'onMenuShareTimeline','onMenuShareAppMessage','showMenuItems','hideOptionMenu'
	        ]
        });

		sharedatas = {
			title: '{$share["share_title"]}', // 分享标题
			desc: '{$share["share_content"]}', // 分享描述
			link: '{$share["link"]}', // 分享链接，注意：该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
			imgUrl: "{$share['share_img']}", // 分享图标
	        success: function(){
	        },
	        cancel: function(){
	        }
	    };
		wx.ready(function () {
		    wx.onMenuShareTimeline(sharedatas);
		    wx.onMenuShareAppMessage(sharedatas);
		    wx.hideOptionMenu();
			wx.showMenuItems({menuList: ['menuItem:share:appMessage','menuItem:share:timeline','menuItem:copyUrl','menuItem:favorite']});
		});
	});	
</script>
<?php } ?>